/*
 * @Descripttion:
 * @version:
 * @Author: xcb
 * @Date: 2021-04-02 10:10:30
 * @LastEditors: gzy 810461372@qq.com
 * @LastEditTime: 2023-08-17 14:53:43
 */
import { createStore } from "vuex";

const store = createStore({
  state: {
    reiverList: [
      {
        reservoir: "乌东德库区",
        river: "金沙江(乌东德库区)",
        disabled: false,
      },
      {
        reservoir: "白鹤滩库区",
        river: "金沙江(白鹤滩库区)",
        disabled: false,
      },
      // {
      //   reservoir: "向家坝至朱沱",
      //   river: "长江(宜宾至朱沱)",
      // disabled: false
      // },
      {
        reservoir: "两坝间",
        river: "长江(两坝间)",
      disabled: false
      },
      {
        reservoir: "三峡库区",
        river: "长江(三峡库区)",
        disabled: false,
      },
      {
        reservoir: "溪洛渡库区",
        river: "金沙江(溪洛渡库区)",
        disabled: false,
      },
      {
        reservoir: "向家坝库区",
        river: "金沙江(向家坝库区)",
        disabled: false,
      },

      {
        reservoir: "长江中下游",
        river: "长江(长江中下游)",
        disabled: false,
      },
    ],
    planList: [],
    planno: "",
    plannoMore: [],
  },
  getters: {},
  mutations: {
    GET_PLANLIST(state, payload) {
      state.planList = payload;
    },
    GET_PLANNO(state, payload) {
      state.planno = payload;
    },
    GET_PLANNOMORE(state, payload) {
      state.plannoMore = payload;
    },
  },
  actions: {},
  modules: {},
});

export default store;
